package main

import (
	"strconv"
	"strings"
)

func intArrToString(nums []int) string {
	builder := strings.Builder{}
	builder.WriteString("[")
	end := len(nums) - 1
	for i, num := range nums {
		builder.WriteString(strconv.Itoa(num))
		if i != end {
			builder.WriteString(", ")
		}
	}
	builder.WriteString("]")
	return builder.String()
}

func boolArrToString(bs []bool) string {
	builder := strings.Builder{}
	builder.WriteString("[")
	end := len(bs) - 1
	for i, b := range bs {
		builder.WriteString(strconv.FormatBool(b))
		if i != end {
			builder.WriteString(", ")
		}
	}
	builder.WriteString("]")
	return builder.String()
}

func strArrToString(bs []string) string {
	builder := strings.Builder{}
	builder.WriteString("[")
	end := len(bs) - 1
	for i, b := range bs {
		builder.WriteString(b)
		if i != end {
			builder.WriteString(", ")
		}
	}
	builder.WriteString("]")
	return builder.String()
}
